package com.guava;

import com.google.common.base.Joiner;

/**
 * 描述:
 *
 * @author luzhongfu
 * Created by lucky on 2021-10-08 5:41 PM
 */
public class JoinerTest {

    private static final Joiner joiner = Joiner.on(",").skipNulls();

    private static final Joiner joiner2 = Joiner.on("-").useForNull("pp");

    public static void main(String[] args) {
        String join = joiner.join("1", "2", "3", null, "4");
        System.out.println(join);

        String join1 = joiner2.join("2", "3", "4", null, "33");

        System.out.println(join1);
    }
}
